package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 * @author ding
 * @since 2021-09-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_shopify_product")
public class OrderShopifyProductDo extends Model<OrderShopifyProductDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @TableField("order_id")
    private Long orderId;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 子标题
     */
    @TableField("variant_title")
    private String variantTitle;

    /**
     * 售价
     */
    @TableField("price")
    private double price;

    /**
     * product_id
     */
    @TableField("product_id")
    private Long productId;

    /**
     * item_id
     */
    @TableField("item_id")
    private Long itemId;

    /**
     * sku
     */
    @TableField("sku")
    private String sku;

    /**
     * sku
     */
    @TableField("sku_name")
    private String skuName;

    /**
     * 订购数量
     */
    @TableField("quantity")
    private Integer quantity;

    /**
     * 可发货数量
     */
    @TableField("fulfillable_quantity")
    private Integer fulfillableQuantity;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
